package com.onenine.app.model;

import java.io.Serializable;

public class LabelItem implements Serializable {

    private int type;
    private String labelId;
    private String labelName;

    public LabelItem() {
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getLabelId() {
        return labelId == null ? "" : labelId;
    }

    public void setLabelId(String labelId) {
        this.labelId = labelId;
    }

    public String getLabelName() {
        return labelName == null ? "" : labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof LabelItem)) {
            return false;
        }
        LabelItem objLabel = ((LabelItem) obj);
        if (this.type != objLabel.type) {
            return false;
        }
        return this.labelId.equals(objLabel.labelId);
    }

    @Override
    public int hashCode() {
        return type + labelId.hashCode() + 37;
    }

}
